package com.eco.fanliapp.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.eco.fanliapp.common.response.ServerResponse;
import com.eco.fanliapp.entity.SyUserTask;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.Date;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jobob
 * @since 2019-08-07
 */
public interface ISyUserTaskService extends IService<SyUserTask> {

    ServerResponse cashIncomeDetails(Integer pageNum, Integer pageSize, Long userId) throws ParseException;

    ServerResponse goldIncomeDetails(Integer pageNum, Integer pageSize, Long userId);

    int insertsyUserTask(SyUserTask syUserTask);

    /**
     * 查询签到状态，是否签到
     * @return
     */
    ServerResponse getSignStatus(Long userId);

    /**
     * 查询日志
     * @param queryWrapper
     * @return
     */
    SyUserTask selectOne(QueryWrapper<SyUserTask> queryWrapper);

    /**
     * 新手任务，复制链接
     *
     * @return
     */
    ServerResponse goodsCopyLink(Long userId);

    /**
     * 新手任务，完善手机号
     *
     * @return
     */
    ServerResponse perfectPohoneNumber(Long userId, String phoneNumber, String code);

    /**
     * 获取新人任务复制链接弹窗
     *
     * @return
     */
    ServerResponse redPacketPopUp(Long userId);

    /**
     * 获取首购红包弹窗
     *
     * @return
     */
    ServerResponse taskPacketPopUp(Long userId);
    /**
     * 签到提醒
     *
     * @return
     */
    ServerResponse signRemind(Long userId, String signPush);

    Integer taskFinishNumber(Long userId);

    ServerResponse selectUserIdCreateUserMonye();
    void sqjdAddMoney();
    void sqjdAddMoneyLog();

}
